package com.ltkj.baseplatform.service;

import com.ltkj.common.core.web.domain.AjaxResult;
import org.springframework.transaction.annotation.Transactional;

public interface IsendMessage {

    /**
     * 发送短信
     * @param phone
     * @return
     */
    public AjaxResult sendmessage(String phone);

    /**
     * 验证手机号
     * @param phone
     * @return
     */
    public AjaxResult checkPhoneCode(String phone, String code);

    /**
     * 验证手机号
     * @param phone
     * @param code
     * @return
     */
    @Transactional
    AjaxResult checkPhoneCodeAtom(String phone, String code);

    AjaxResult testSeata();
}
